<!-- Left side column. contains the logo and sidebar -->
<aside xmlns:th="http://www.w3.org/1999/xhtml" class="main-sidebar" th:fragment="sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                <img th:src="@{/images/user_default.png}" class="img-circle" alt="User Image"/>
            </div>
            <div class="pull-left info">
                <p th:text="${userName !=null ? userName:'System'}">System</p>
                <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
            </div>
        </div>
        <!-- /.search form -->
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu" id="menu" data-widget="tree">
            <li class="header">湖南省运输移动系统</li>
            <li th:each="projectMenu:${projectMenus}" th:class="${#lists.size(projectMenu.chilMenu)>0?'treeview':''}" >
                <a th:href="${projectMenu.url}">
                	<em class="active_icon"></em>
                    <i th:class="${projectMenu.icon}"></i>
                    <span th:text="${projectMenu.name}">MenuName</span>
                    <span class="pull-right-container" th:if="${#lists.size(projectMenu.chilMenu)>0}">
                      <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu" th:if="${#lists.size(projectMenu.chilMenu)>0}">
                    <li  th:unless="${#lists.isEmpty(projectMenu.chilMenu)}" th:each="childProjectMenu:${projectMenu.chilMenu}" th:id="${childProjectMenu.funcMenuId}">
                        <a href="#"  th:onclick="'javascript:getFragment(\''+${childProjectMenu.url}+'\',\''+${childProjectMenu.funcMenuId}+'\')'"><i  th:class="${childProjectMenu.icon}"></i><span th:text="${childProjectMenu.name}"/></a>
                    </li>
                </ul>
            </li>
        </ul>
    </section>
    <!-- /.sidebar -->
    <script type="text/javascript">
//      function navigationShow(pathName){
//        var aDom = $('#menu a[href="' + pathName + '"]');
//        aDom.closest("li").addClass('active');
//        aDom.closest("li.treeview").addClass('open menu-open');
//        aDom.closest("ul.treeview-menu").css("display","block");
//      }
//      navigationShow(document.location.pathname);

      function getFragment(url,menuId){
        locationUrl(url,menuId);
      }
    </script>
</aside>
